package mvn56.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import mvn56.dao.UserDao;

@Service
@Scope("prototype")
public class UserServiceImpl {
	@Autowired
	private UserDao userdao;

	public UserDao getUserdao() {
		return userdao;
	}

	public void setUserdao(UserDao userdao) {
		this.userdao = userdao;
	}



	public void register() {
		System.out.println("用户注册");
		userdao.addUser();
	}

}
